package com.chaodev.base.service;

import com.github.pagehelper.PageInfo;
import com.chaodev.base.dto.ResourceListDto;
import com.chaodev.base.model.ResourceList;

import java.util.List;

public interface ResourceListService {

    /**
     * 保存三类清单
     * @param resourceList
     * @return
     */
    boolean saveResourceList(ResourceList resourceList);

    /**
     * 新增三类清单
     * @param resourceList
     * @return
     */
    boolean addResourceList(ResourceList resourceList);

    /**
     * 修改三类清单
     * @param resourceList
     * @return
     */
    boolean editResourceList(ResourceList resourceList);

    /**
     * 删除三类清单
     * @param resourceList
     * @return
     */
    boolean deleteResourceList(ResourceList resourceList);

    /**
     * 查询三类清单列表
     * @param resourceListDto
     * @return
     */
    List<ResourceList> getResourceLists(ResourceListDto resourceListDto);

    /**
     * 查询三类清单分页
     * @param resourceListDto
     * @return
     */
    PageInfo<ResourceList> getResourceListPage(ResourceListDto resourceListDto);

    /**
     * id查询单条三类清单
     * @param resourceList
     * @return
     */
    ResourceList getResourceListById(ResourceList resourceList);

    /**
     * 更新访问量
     * @param resourceList
     */
    void updateVisitNum(ResourceList resourceList);
}
